$uiname: "aoyou-fileuploader";
.#{$uiname}{
    width: 800px;
    position: relative;
    border: 1px solid #EEE;
    text-align: center;
    background-color: #EAEAEA;
    padding: 20px;
    border-radius: 4px;
    .#{$uiname}-preview-stage{
        width: 100%;
        height: 400px;
        border-bottom: 1px dashed #AAA;
        margin-bottom: 20px;
        text-align: left;
        overflow-y: auto;
        font-size: 12px;
        .#{$uiname}-preview-image-wrapper{
            display: inline-block;
            margin: 5px;
            position: relative;
            border: 1px dashed #AAA;
            z-index: 0;
            overflow: hidden;
            img{
                position: absolute;
                top: 0px;
                left: 0px;
                width: 100%;
                height: 100%;
                z-index: -1;
            }
            .#{$uiname}-preview-menu{
                color: #FFF;
                height: 24px;
                line-height: 14px;
                background-color: #333;
                opacity: 0.8;
                text-align: left;
                .#{$uiname}-closeicon{
                    position: absolute;
                    left: 2px;
                    top: 4px;
                    text-decoration: none;
                    cursor: pointer;
                    width: 15px;
                    height: 15px;
                    display: inline-block;
                    background: url("../useimg/closewhite.png") no-repeat;
                }
                .#{$uiname}-filename{
                    position: absolute;
                    left: 18px;
                    top: 5px;
                    right: 5px;
                    text-overflow: ellipsis;
                    overflow: hidden;
                }
            }
            .#{$uiname}-preview-progress-wrapper{
                position: absolute;
                bottom: 0px;
                width: 100%;
                color: #FFF;
                height: 24px;
                line-height: 14px;
                background-color: #333;
                opacity: 0.8;
                text-align: left;
                .#{$uiname}-preview-progress-body{
                    position: relative;
                    height: 100%;
                    border-radius: 4px;
                    .#{$uiname}-progress-bar{
                        position: absolute;
                        top: 0px;
                        left: 0px;
                        height: 100%;
                        background-color: #00B7EE;
                        opacity: 1;
                    }
                    .#{$uiname}-message{
                        position: absolute;
                        top: 0px;
                        left: 0px;
                        line-height: 14px;
                        height: 14px;
                        display: inline-block;
                        overflow: hidden;
                        margin: 5px;
                    }
                }
            }
        }
    }
    .#{$uiname}-uploader-button{
        width: 168px;
        height: 44px;
        font-size: 18px;
        border-radius: 2px;
        box-shadow: 2px 2px 5px #888;
        position: relative;
        margin: 0px 5px;
        font-family: "Microsoft YaHei";
        text-align: center;
        &.#{$uiname}-uploader-button-add{
            background-color: #288d41;
            border: 1px solid #ccc;
            color: #EEE;
        }
        &.#{$uiname}-uploader-button-upload{
            background-color: #FFF;
            border: 1px solid #999;
            color: #333;
        }
    }
}